import request from '@/utils/request'
export const fetchDepertmentListAPI = () => request.get('/company/department')
// export const fetchManagerList = () => request.get('/sys/user/simple')
export function fetchManagerList() {
  return request({
    url: '/sys/user/simple',
    method: 'get'
  })
}
export function addManagerAPI(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data

  })
}
export const eidtDepartAPI = id => request.get(`/company/department/${id}`)
export const updateFormListAPI = data => request.put(`/company/department/${data.id}`, data)
export const delDepartAPI = id => request.delete(`/company/department/${id}`)
